package com.iqiyi.pps.epg.core.model.program;

public class LinkData{
    public static final String TYPE_FLV = "FLV";
    public static final String TYPE_TS = "TS";
    public static final String TYPE_DOLBY = "DOLBY";
    public static final String TYPE_HCDN = "HCDN";

    public static final String[] CHECK_TYPE_ARR = new String[]{TYPE_FLV,TYPE_HCDN,TYPE_TS,TYPE_DOLBY};
    private String uniqueKey;
    private String link;
    private String showUrl;
    private String streamFormatType;
    private boolean linkFormat = true;

    private boolean dolbyLink = false;
    private String dolbyName;
    private String dolbyUrl;

    private Integer span = null;

    private String spanChKey = null;

    private boolean spanWarn = false;

    public String getUniqueKey() {
        return uniqueKey;
    }

    public void setUniqueKey(String uniqueKey) {
        this.uniqueKey = uniqueKey;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getShowUrl() {
        return showUrl;
    }

    public void setShowUrl(String url) {
        this.showUrl = url;
    }

    public boolean isLinkFormat() {
        return linkFormat;
    }

    public void setLinkFormat(boolean linkFormat) {
        this.linkFormat = linkFormat;
    }

    public String getStreamFormatType() {
        return streamFormatType;
    }

    public void setStreamFormatType(String streamFormatType) {
        this.streamFormatType = streamFormatType;
    }

    public Integer getSpan() {
        return span;
    }

    public void setSpan(Integer span) {
        this.span = span;
    }

    public boolean isSpanWarn() {
        return spanWarn;
    }

    public void setSpanWarn(boolean spanWarn) {
        this.spanWarn = spanWarn;
    }

    public String getSpanChKey() {
        return spanChKey;
    }

    public void setSpanChKey(String spanChKey) {
        this.spanChKey = spanChKey;
    }

    public boolean isTs(){
        return TYPE_TS.equalsIgnoreCase(this.getStreamFormatType());
    }
    public boolean isFLv(){
        return TYPE_FLV.equalsIgnoreCase(this.getStreamFormatType());
    }
    public boolean isDolby(){
        return TYPE_DOLBY.equalsIgnoreCase(this.getStreamFormatType());
    }


    public boolean isDolbyLink() {
        return dolbyLink;
    }

    public void setDolbyLink(boolean dolbyLink) {
        this.dolbyLink = dolbyLink;
    }

    public String getDolbyUrl() {
        return dolbyUrl;
    }

    public void setDolbyUrl(String dolbyUrl) {
        this.dolbyUrl = dolbyUrl;
    }

    public String getDolbyName() {
        return dolbyName;
    }

    public void setDolbyName(String dolbyName) {
        this.dolbyName = dolbyName;
    }
}